package com.maigang.pojo.common;

import java.util.Date;

public class Address {
    private Integer id;

    private Integer userId;

    private String address;

    private String phone;

    private Integer isDefault;

    private String name;

    private Date createTime;

    private Date updateTime;

    public Address(Integer id, Integer userId, String address, String phone, Integer isDefault, String name, Date createTime, Date updateTime) {
        this.id = id;
        this.userId = userId;
        this.address = address;
        this.phone = phone;
        this.isDefault = isDefault;
        this.name = name;
        this.createTime = createTime;
        this.updateTime = updateTime;
    }

    public Address() {
        super();
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address == null ? null : address.trim();
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone == null ? null : phone.trim();
    }

    public Integer getisDefault() {
        return isDefault;
    }

    public void setisDefault(Integer isDefault) {
        this.isDefault = isDefault;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
}